<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的发布</title>
</head>
<body>
	<!-- 商品展示 -->

	<div class="container-fluid ">
		<div class="row ">

			<c:forEach items="${publish_lists}" var="goods_p" varStatus="statu">

			<div class="panel panel-default col-xs-5 col-sm-2"
				style="margin: 21px;">
				<div class="panel-body">

					<div class="row" style="margin-top: 10px;">

						<a href="goods_details?goodsId=${goods_p.goods_id}">

							<c:if test="${goods_p.goods_img.substring(0,1) eq '/'}">
								<img class=" img-responsive" alt="img_detail" src="${goods_p.goods_img}"
									 style="width: 190px; height: 190px;">
							</c:if>

							<c:if test="${goods_p.goods_img.substring(0,1) ne '/'}">
								<img src="showGoodsPic?goodsImg=${goods_p.goods_img}&userid=${goods_p.user.userid}"
									 class=" img-responsive " alt="img_detail" style="width: 190px; height: 190px;">
							</c:if>

						</a>

						<p class="productPriceEm" >¥${goods_p.goods_price}</p>
						<p class="productFont"><small>${goods_p.goods_name}</small></p>
						<a>${goods_p.user.nickname}</a>
						<small style="margin-left: 1%">${goods_p.trade_place}</small>


						<div class="row" style="padding-top: 10px">

							<a class="btn btn-xs btn-info col-sm-4 col-md-offset-1"
								href="ModifyPublish?goods_id=${goods_p.goods_id}">修改</a>

							<a class="btn  btn-xs btn-danger col-sm-4 col-md-offset-2"
							   onclick="pub_confirmdelete(${goods_p.goods_id})" >删除</a>
						</div>
					</div>


				</div>
			</div>

			</c:forEach>
		</div>
	</div>


</body>
</html>